<?php
$tdataproforma_invoices_report=array();
	$tdataproforma_invoices_report[".NumberOfChars"]=80; 
	$tdataproforma_invoices_report[".ShortName"]="proforma_invoices_report";
	$tdataproforma_invoices_report[".OwnerID"]="";
	$tdataproforma_invoices_report[".OriginalTable"]="proforma_invoices";


	
//	field labels
$fieldLabelsproforma_invoices_report = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsproforma_invoices_report["English"]=array();
	$fieldToolTipsproforma_invoices_report["English"]=array();
	$fieldLabelsproforma_invoices_report["English"]["account_id"] = "Account";
	$fieldToolTipsproforma_invoices_report["English"]["account_id"] = "";
	$fieldLabelsproforma_invoices_report["English"]["buyer_id"] = "Buyersasdasd";
	$fieldToolTipsproforma_invoices_report["English"]["buyer_id"] = "";
	$fieldLabelsproforma_invoices_report["English"]["consignee_id"] = "Consignee";
	$fieldToolTipsproforma_invoices_report["English"]["consignee_id"] = "";
	$fieldLabelsproforma_invoices_report["English"]["notify_id"] = "Notify";
	$fieldToolTipsproforma_invoices_report["English"]["notify_id"] = "";
	$fieldLabelsproforma_invoices_report["English"]["account_address"] = "Account Address";
	$fieldToolTipsproforma_invoices_report["English"]["account_address"] = "";
	$fieldLabelsproforma_invoices_report["English"]["buyer_address"] = "Buyer Address";
	$fieldToolTipsproforma_invoices_report["English"]["buyer_address"] = "";
	$fieldLabelsproforma_invoices_report["English"]["consignee_address"] = "Consignee Address";
	$fieldToolTipsproforma_invoices_report["English"]["consignee_address"] = "";
	$fieldLabelsproforma_invoices_report["English"]["notify_address"] = "Notify Address";
	$fieldToolTipsproforma_invoices_report["English"]["notify_address"] = "";
	$fieldLabelsproforma_invoices_report["English"]["part_no"] = "Part No";
	$fieldToolTipsproforma_invoices_report["English"]["part_no"] = "";
	$fieldLabelsproforma_invoices_report["English"]["uom_id"] = "Uom Id";
	$fieldToolTipsproforma_invoices_report["English"]["uom_id"] = "";
	$fieldLabelsproforma_invoices_report["English"]["quantity"] = "Quantity";
	$fieldToolTipsproforma_invoices_report["English"]["quantity"] = "";
	$fieldLabelsproforma_invoices_report["English"]["description"] = "Description";
	$fieldToolTipsproforma_invoices_report["English"]["description"] = "";
	$fieldLabelsproforma_invoices_report["English"]["unit_price"] = "Unit Price";
	$fieldToolTipsproforma_invoices_report["English"]["unit_price"] = "";
	$fieldLabelsproforma_invoices_report["English"]["total_price"] = "Total Price";
	$fieldToolTipsproforma_invoices_report["English"]["total_price"] = "";
	$fieldLabelsproforma_invoices_report["English"]["proforma_invoice_no"] = "Proforma Invoice No";
	$fieldToolTipsproforma_invoices_report["English"]["proforma_invoice_no"] = "";
	$fieldLabelsproforma_invoices_report["English"]["proforma_invoice_date"] = "Proforma Invoice Date";
	$fieldToolTipsproforma_invoices_report["English"]["proforma_invoice_date"] = "";
	if (count($fieldToolTipsproforma_invoices_report["English"])){
		$tdataproforma_invoices_report[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Hong Kong S.A.R.)")
{
	$fieldLabelsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldToolTipsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldLabelsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]["account_id"] = "Account Id";
	$fieldToolTipsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]["account_id"] = "";
	$fieldLabelsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]["buyer_id"] = "Buyer Id";
	$fieldToolTipsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]["buyer_id"] = "";
	$fieldLabelsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]["consignee_id"] = "Consignee Id";
	$fieldToolTipsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]["consignee_id"] = "";
	$fieldLabelsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]["notify_id"] = "Notify Id";
	$fieldToolTipsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]["notify_id"] = "";
	$fieldLabelsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]["account_address"] = "Account Address";
	$fieldToolTipsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]["account_address"] = "";
	$fieldLabelsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]["buyer_address"] = "Buyer Address";
	$fieldToolTipsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]["buyer_address"] = "";
	$fieldLabelsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]["consignee_address"] = "Consignee Address";
	$fieldToolTipsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]["consignee_address"] = "";
	$fieldLabelsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]["notify_address"] = "Notify Address";
	$fieldToolTipsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]["notify_address"] = "";
	$fieldLabelsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]["part_no"] = "Part No";
	$fieldToolTipsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]["part_no"] = "";
	$fieldLabelsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]["uom_id"] = "Uom Id";
	$fieldToolTipsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]["uom_id"] = "";
	$fieldLabelsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]["quantity"] = "Quantity";
	$fieldToolTipsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]["quantity"] = "";
	$fieldLabelsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]["description"] = "Description";
	$fieldToolTipsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]["description"] = "";
	$fieldLabelsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]["unit_price"] = "Unit Price";
	$fieldToolTipsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]["unit_price"] = "";
	$fieldLabelsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]["total_price"] = "Total Price";
	$fieldToolTipsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]["total_price"] = "";
	$fieldLabelsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]["proforma_invoice_no"] = "Proforma Invoice No";
	$fieldToolTipsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]["proforma_invoice_no"] = "";
	$fieldLabelsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]["proforma_invoice_date"] = "Proforma Invoice Date";
	$fieldToolTipsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"]["proforma_invoice_date"] = "";
	if (count($fieldToolTipsproforma_invoices_report["Chinese (Hong Kong S.A.R.)"])){
		$tdataproforma_invoices_report[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Taiwan)")
{
	$fieldLabelsproforma_invoices_report["Chinese (Taiwan)"]=array();
	$fieldToolTipsproforma_invoices_report["Chinese (Taiwan)"]=array();
	$fieldLabelsproforma_invoices_report["Chinese (Taiwan)"]["account_id"] = "Account Id";
	$fieldToolTipsproforma_invoices_report["Chinese (Taiwan)"]["account_id"] = "";
	$fieldLabelsproforma_invoices_report["Chinese (Taiwan)"]["buyer_id"] = "Buyer Id";
	$fieldToolTipsproforma_invoices_report["Chinese (Taiwan)"]["buyer_id"] = "";
	$fieldLabelsproforma_invoices_report["Chinese (Taiwan)"]["consignee_id"] = "Consignee Id";
	$fieldToolTipsproforma_invoices_report["Chinese (Taiwan)"]["consignee_id"] = "";
	$fieldLabelsproforma_invoices_report["Chinese (Taiwan)"]["notify_id"] = "Notify Id";
	$fieldToolTipsproforma_invoices_report["Chinese (Taiwan)"]["notify_id"] = "";
	$fieldLabelsproforma_invoices_report["Chinese (Taiwan)"]["account_address"] = "Account Address";
	$fieldToolTipsproforma_invoices_report["Chinese (Taiwan)"]["account_address"] = "";
	$fieldLabelsproforma_invoices_report["Chinese (Taiwan)"]["buyer_address"] = "Buyer Address";
	$fieldToolTipsproforma_invoices_report["Chinese (Taiwan)"]["buyer_address"] = "";
	$fieldLabelsproforma_invoices_report["Chinese (Taiwan)"]["consignee_address"] = "Consignee Address";
	$fieldToolTipsproforma_invoices_report["Chinese (Taiwan)"]["consignee_address"] = "";
	$fieldLabelsproforma_invoices_report["Chinese (Taiwan)"]["notify_address"] = "Notify Address";
	$fieldToolTipsproforma_invoices_report["Chinese (Taiwan)"]["notify_address"] = "";
	$fieldLabelsproforma_invoices_report["Chinese (Taiwan)"]["part_no"] = "Part No";
	$fieldToolTipsproforma_invoices_report["Chinese (Taiwan)"]["part_no"] = "";
	$fieldLabelsproforma_invoices_report["Chinese (Taiwan)"]["uom_id"] = "Uom Id";
	$fieldToolTipsproforma_invoices_report["Chinese (Taiwan)"]["uom_id"] = "";
	$fieldLabelsproforma_invoices_report["Chinese (Taiwan)"]["quantity"] = "Quantity";
	$fieldToolTipsproforma_invoices_report["Chinese (Taiwan)"]["quantity"] = "";
	$fieldLabelsproforma_invoices_report["Chinese (Taiwan)"]["description"] = "Description";
	$fieldToolTipsproforma_invoices_report["Chinese (Taiwan)"]["description"] = "";
	$fieldLabelsproforma_invoices_report["Chinese (Taiwan)"]["unit_price"] = "Unit Price";
	$fieldToolTipsproforma_invoices_report["Chinese (Taiwan)"]["unit_price"] = "";
	$fieldLabelsproforma_invoices_report["Chinese (Taiwan)"]["total_price"] = "Total Price";
	$fieldToolTipsproforma_invoices_report["Chinese (Taiwan)"]["total_price"] = "";
	$fieldLabelsproforma_invoices_report["Chinese (Taiwan)"]["proforma_invoice_no"] = "Proforma Invoice No";
	$fieldToolTipsproforma_invoices_report["Chinese (Taiwan)"]["proforma_invoice_no"] = "";
	$fieldLabelsproforma_invoices_report["Chinese (Taiwan)"]["proforma_invoice_date"] = "Proforma Invoice Date";
	$fieldToolTipsproforma_invoices_report["Chinese (Taiwan)"]["proforma_invoice_date"] = "";
	if (count($fieldToolTipsproforma_invoices_report["Chinese (Taiwan)"])){
		$tdataproforma_invoices_report[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="French")
{
	$fieldLabelsproforma_invoices_report["French"]=array();
	$fieldToolTipsproforma_invoices_report["French"]=array();
	$fieldLabelsproforma_invoices_report["French"]["account_id"] = "Account Id";
	$fieldToolTipsproforma_invoices_report["French"]["account_id"] = "";
	$fieldLabelsproforma_invoices_report["French"]["buyer_id"] = "Buyer Id";
	$fieldToolTipsproforma_invoices_report["French"]["buyer_id"] = "";
	$fieldLabelsproforma_invoices_report["French"]["consignee_id"] = "Consignee Id";
	$fieldToolTipsproforma_invoices_report["French"]["consignee_id"] = "";
	$fieldLabelsproforma_invoices_report["French"]["notify_id"] = "Notify Id";
	$fieldToolTipsproforma_invoices_report["French"]["notify_id"] = "";
	$fieldLabelsproforma_invoices_report["French"]["account_address"] = "Account Address";
	$fieldToolTipsproforma_invoices_report["French"]["account_address"] = "";
	$fieldLabelsproforma_invoices_report["French"]["buyer_address"] = "Buyer Address";
	$fieldToolTipsproforma_invoices_report["French"]["buyer_address"] = "";
	$fieldLabelsproforma_invoices_report["French"]["consignee_address"] = "Consignee Address";
	$fieldToolTipsproforma_invoices_report["French"]["consignee_address"] = "";
	$fieldLabelsproforma_invoices_report["French"]["notify_address"] = "Notify Address";
	$fieldToolTipsproforma_invoices_report["French"]["notify_address"] = "";
	$fieldLabelsproforma_invoices_report["French"]["part_no"] = "Part No";
	$fieldToolTipsproforma_invoices_report["French"]["part_no"] = "";
	$fieldLabelsproforma_invoices_report["French"]["uom_id"] = "Uom Id";
	$fieldToolTipsproforma_invoices_report["French"]["uom_id"] = "";
	$fieldLabelsproforma_invoices_report["French"]["quantity"] = "Quantity";
	$fieldToolTipsproforma_invoices_report["French"]["quantity"] = "";
	$fieldLabelsproforma_invoices_report["French"]["description"] = "Description";
	$fieldToolTipsproforma_invoices_report["French"]["description"] = "";
	$fieldLabelsproforma_invoices_report["French"]["unit_price"] = "Unit Price";
	$fieldToolTipsproforma_invoices_report["French"]["unit_price"] = "";
	$fieldLabelsproforma_invoices_report["French"]["total_price"] = "Total Price";
	$fieldToolTipsproforma_invoices_report["French"]["total_price"] = "";
	$fieldLabelsproforma_invoices_report["French"]["proforma_invoice_no"] = "Proforma Invoice No";
	$fieldToolTipsproforma_invoices_report["French"]["proforma_invoice_no"] = "";
	$fieldLabelsproforma_invoices_report["French"]["proforma_invoice_date"] = "Proforma Invoice Date";
	$fieldToolTipsproforma_invoices_report["French"]["proforma_invoice_date"] = "";
	if (count($fieldToolTipsproforma_invoices_report["French"])){
		$tdataproforma_invoices_report[".isUseToolTips"]=true;
	}
}


	
	$tdataproforma_invoices_report[".NCSearch"]=true;

	

$tdataproforma_invoices_report[".shortTableName"] = "proforma_invoices_report";
$tdataproforma_invoices_report[".nSecOptions"] = 0;
$tdataproforma_invoices_report[".recsPerRowList"] = 1;	
$tdataproforma_invoices_report[".tableGroupBy"] = "0";
$tdataproforma_invoices_report[".mainTableOwnerID"] = "";
$tdataproforma_invoices_report[".moveNext"] = 1;




$tdataproforma_invoices_report[".showAddInPopup"] = false;

$tdataproforma_invoices_report[".showEditInPopup"] = false;

$tdataproforma_invoices_report[".showViewInPopup"] = false;


$tdataproforma_invoices_report[".fieldsForRegister"] = array();

$tdataproforma_invoices_report[".listAjax"] = false;

	$tdataproforma_invoices_report[".audit"] = false;

	$tdataproforma_invoices_report[".locking"] = false;
	
$tdataproforma_invoices_report[".listIcons"] = true;
$tdataproforma_invoices_report[".edit"] = true;
$tdataproforma_invoices_report[".inlineEdit"] = true;
$tdataproforma_invoices_report[".view"] = true;

$tdataproforma_invoices_report[".exportTo"] = true;

$tdataproforma_invoices_report[".printFriendly"] = true;

$tdataproforma_invoices_report[".delete"] = true;

$tdataproforma_invoices_report[".showSimpleSearchOptions"] = false;

$tdataproforma_invoices_report[".showSearchPanel"] = true;


$tdataproforma_invoices_report[".isUseAjaxSuggest"] = true;



// button handlers file names

$tdataproforma_invoices_report[".addPageEvents"] = false;


// use datepicker for search panel
$tdataproforma_invoices_report[".isUseCalendarForSearch"] = true;

// use timepicker for search panel
$tdataproforma_invoices_report[".isUseTimeForSearch"] = false;

$tdataproforma_invoices_report[".isUseiBox"] = false;



$tdataproforma_invoices_report[".isUseInlineJs"] = $tdataproforma_invoices_report[".isUseInlineAdd"] || $tdataproforma_invoices_report[".isUseInlineEdit"];

$tdataproforma_invoices_report[".allSearchFields"] = array();

$tdataproforma_invoices_report[".globSearchFields"][] = "account_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("account_id", $tdataproforma_invoices_report[".allSearchFields"]))
{
	$tdataproforma_invoices_report[".allSearchFields"][] = "account_id";	
}
$tdataproforma_invoices_report[".globSearchFields"][] = "buyer_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("buyer_id", $tdataproforma_invoices_report[".allSearchFields"]))
{
	$tdataproforma_invoices_report[".allSearchFields"][] = "buyer_id";	
}
$tdataproforma_invoices_report[".globSearchFields"][] = "consignee_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("consignee_id", $tdataproforma_invoices_report[".allSearchFields"]))
{
	$tdataproforma_invoices_report[".allSearchFields"][] = "consignee_id";	
}
$tdataproforma_invoices_report[".globSearchFields"][] = "notify_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("notify_id", $tdataproforma_invoices_report[".allSearchFields"]))
{
	$tdataproforma_invoices_report[".allSearchFields"][] = "notify_id";	
}
$tdataproforma_invoices_report[".globSearchFields"][] = "part_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("part_no", $tdataproforma_invoices_report[".allSearchFields"]))
{
	$tdataproforma_invoices_report[".allSearchFields"][] = "part_no";	
}
$tdataproforma_invoices_report[".globSearchFields"][] = "uom_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("uom_id", $tdataproforma_invoices_report[".allSearchFields"]))
{
	$tdataproforma_invoices_report[".allSearchFields"][] = "uom_id";	
}
$tdataproforma_invoices_report[".globSearchFields"][] = "quantity";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("quantity", $tdataproforma_invoices_report[".allSearchFields"]))
{
	$tdataproforma_invoices_report[".allSearchFields"][] = "quantity";	
}
$tdataproforma_invoices_report[".globSearchFields"][] = "description";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("description", $tdataproforma_invoices_report[".allSearchFields"]))
{
	$tdataproforma_invoices_report[".allSearchFields"][] = "description";	
}
$tdataproforma_invoices_report[".globSearchFields"][] = "unit_price";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("unit_price", $tdataproforma_invoices_report[".allSearchFields"]))
{
	$tdataproforma_invoices_report[".allSearchFields"][] = "unit_price";	
}
$tdataproforma_invoices_report[".globSearchFields"][] = "total_price";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("total_price", $tdataproforma_invoices_report[".allSearchFields"]))
{
	$tdataproforma_invoices_report[".allSearchFields"][] = "total_price";	
}
$tdataproforma_invoices_report[".globSearchFields"][] = "proforma_invoice_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("proforma_invoice_no", $tdataproforma_invoices_report[".allSearchFields"]))
{
	$tdataproforma_invoices_report[".allSearchFields"][] = "proforma_invoice_no";	
}
$tdataproforma_invoices_report[".globSearchFields"][] = "proforma_invoice_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("proforma_invoice_date", $tdataproforma_invoices_report[".allSearchFields"]))
{
	$tdataproforma_invoices_report[".allSearchFields"][] = "proforma_invoice_date";	
}


$tdataproforma_invoices_report[".googleLikeFields"][] = "account_id";
$tdataproforma_invoices_report[".googleLikeFields"][] = "buyer_id";
$tdataproforma_invoices_report[".googleLikeFields"][] = "consignee_id";
$tdataproforma_invoices_report[".googleLikeFields"][] = "notify_id";
$tdataproforma_invoices_report[".googleLikeFields"][] = "part_no";
$tdataproforma_invoices_report[".googleLikeFields"][] = "uom_id";
$tdataproforma_invoices_report[".googleLikeFields"][] = "quantity";
$tdataproforma_invoices_report[".googleLikeFields"][] = "description";
$tdataproforma_invoices_report[".googleLikeFields"][] = "unit_price";
$tdataproforma_invoices_report[".googleLikeFields"][] = "total_price";
$tdataproforma_invoices_report[".googleLikeFields"][] = "proforma_invoice_no";
$tdataproforma_invoices_report[".googleLikeFields"][] = "proforma_invoice_date";



$tdataproforma_invoices_report[".advSearchFields"][] = "account_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("account_id", $tdataproforma_invoices_report[".allSearchFields"])) 
{
	$tdataproforma_invoices_report[".allSearchFields"][] = "account_id";	
}
$tdataproforma_invoices_report[".advSearchFields"][] = "buyer_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("buyer_id", $tdataproforma_invoices_report[".allSearchFields"])) 
{
	$tdataproforma_invoices_report[".allSearchFields"][] = "buyer_id";	
}
$tdataproforma_invoices_report[".advSearchFields"][] = "consignee_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("consignee_id", $tdataproforma_invoices_report[".allSearchFields"])) 
{
	$tdataproforma_invoices_report[".allSearchFields"][] = "consignee_id";	
}
$tdataproforma_invoices_report[".advSearchFields"][] = "notify_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("notify_id", $tdataproforma_invoices_report[".allSearchFields"])) 
{
	$tdataproforma_invoices_report[".allSearchFields"][] = "notify_id";	
}
$tdataproforma_invoices_report[".advSearchFields"][] = "part_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("part_no", $tdataproforma_invoices_report[".allSearchFields"])) 
{
	$tdataproforma_invoices_report[".allSearchFields"][] = "part_no";	
}
$tdataproforma_invoices_report[".advSearchFields"][] = "uom_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("uom_id", $tdataproforma_invoices_report[".allSearchFields"])) 
{
	$tdataproforma_invoices_report[".allSearchFields"][] = "uom_id";	
}
$tdataproforma_invoices_report[".advSearchFields"][] = "quantity";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("quantity", $tdataproforma_invoices_report[".allSearchFields"])) 
{
	$tdataproforma_invoices_report[".allSearchFields"][] = "quantity";	
}
$tdataproforma_invoices_report[".advSearchFields"][] = "description";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("description", $tdataproforma_invoices_report[".allSearchFields"])) 
{
	$tdataproforma_invoices_report[".allSearchFields"][] = "description";	
}
$tdataproforma_invoices_report[".advSearchFields"][] = "unit_price";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("unit_price", $tdataproforma_invoices_report[".allSearchFields"])) 
{
	$tdataproforma_invoices_report[".allSearchFields"][] = "unit_price";	
}
$tdataproforma_invoices_report[".advSearchFields"][] = "total_price";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("total_price", $tdataproforma_invoices_report[".allSearchFields"])) 
{
	$tdataproforma_invoices_report[".allSearchFields"][] = "total_price";	
}
$tdataproforma_invoices_report[".advSearchFields"][] = "proforma_invoice_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("proforma_invoice_no", $tdataproforma_invoices_report[".allSearchFields"])) 
{
	$tdataproforma_invoices_report[".allSearchFields"][] = "proforma_invoice_no";	
}
$tdataproforma_invoices_report[".advSearchFields"][] = "proforma_invoice_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("proforma_invoice_date", $tdataproforma_invoices_report[".allSearchFields"])) 
{
	$tdataproforma_invoices_report[".allSearchFields"][] = "proforma_invoice_date";	
}

$tdataproforma_invoices_report[".isTableType"] = "report";

$tdataproforma_invoices_report[".reportGroupFields"] = true;

	

$tdataproforma_invoices_report[".isDisplayLoading"] = true;

$tdataproforma_invoices_report[".isResizeColumns"] = false;






$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdataproforma_invoices_report[".strOrderBy"] = $gstrOrderBy;
	
$tdataproforma_invoices_report[".orderindexes"] = array();

$tdataproforma_invoices_report[".sqlHead"] = "SELECT proforma_invoices.account_id,  proforma_invoices.buyer_id,  proforma_invoices.consignee_id,  proforma_invoices.notify_id,  proforma_invoice_items.part_no,  proforma_invoice_items.uom_id,  proforma_invoice_items.quantity,  proforma_invoice_items.description,  proforma_invoice_items.unit_price,  proforma_invoice_items.total_price,  proforma_invoices.proforma_invoice_no,  proforma_invoices.proforma_invoice_date";
$tdataproforma_invoices_report[".sqlFrom"] = "FROM proforma_invoices  INNER JOIN proforma_invoice_items ON proforma_invoices.id = proforma_invoice_items.proforma_commercial_id";
$tdataproforma_invoices_report[".sqlWhereExpr"] = "";
$tdataproforma_invoices_report[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdataproforma_invoices_report[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdataproforma_invoices_report[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tdataproforma_invoices_report[".Keys"] = $tableKeys;

//	account_id
	$fdata = array();
	$fdata["strName"] = "account_id";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Account"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "account_id";
	
		$fdata["FullName"]= "proforma_invoices.account_id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdataproforma_invoices_report["account_id"]=$fdata;
//	buyer_id
	$fdata = array();
	$fdata["strName"] = "buyer_id";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Buyersasdasd"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "buyer_id";
	
		$fdata["FullName"]= "proforma_invoices.buyer_id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdataproforma_invoices_report["buyer_id"]=$fdata;
//	consignee_id
	$fdata = array();
	$fdata["strName"] = "consignee_id";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Consignee"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "consignee_id";
	
		$fdata["FullName"]= "proforma_invoices.consignee_id";
	
		
		
		
		
		
				$fdata["Index"]= 3;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdataproforma_invoices_report["consignee_id"]=$fdata;
//	notify_id
	$fdata = array();
	$fdata["strName"] = "notify_id";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Notify"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "notify_id";
	
		$fdata["FullName"]= "proforma_invoices.notify_id";
	
		
		
		
		
		
				$fdata["Index"]= 4;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdataproforma_invoices_report["notify_id"]=$fdata;
//	part_no
	$fdata = array();
	$fdata["strName"] = "part_no";
	$fdata["ownerTable"] = "proforma_invoice_items";
		$fdata["Label"]="Part No"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "part_no";
	
		$fdata["FullName"]= "proforma_invoice_items.part_no";
	
		
		
		
		
		
				$fdata["Index"]= 5;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdataproforma_invoices_report["part_no"]=$fdata;
//	uom_id
	$fdata = array();
	$fdata["strName"] = "uom_id";
	$fdata["ownerTable"] = "proforma_invoice_items";
		$fdata["Label"]="Uom Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "uom_id";
	
		$fdata["FullName"]= "proforma_invoice_items.uom_id";
	
		
		
		
		
		
				$fdata["Index"]= 6;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdataproforma_invoices_report["uom_id"]=$fdata;
//	quantity
	$fdata = array();
	$fdata["strName"] = "quantity";
	$fdata["ownerTable"] = "proforma_invoice_items";
		$fdata["Label"]="Quantity"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "quantity";
	
		$fdata["FullName"]= "proforma_invoice_items.quantity";
	
		
		
		
		
		
				$fdata["Index"]= 7;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdataproforma_invoices_report["quantity"]=$fdata;
//	description
	$fdata = array();
	$fdata["strName"] = "description";
	$fdata["ownerTable"] = "proforma_invoice_items";
		$fdata["Label"]="Description"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "Custom";
	
		
		
		
		
		
	$fdata["GoodName"]= "description";
	
		$fdata["FullName"]= "proforma_invoice_items.description";
	
		
		
		
		
		
			$fdata["UploadFolder"]="files"; 
		$fdata["Index"]= 8;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdataproforma_invoices_report["description"]=$fdata;
//	unit_price
	$fdata = array();
	$fdata["strName"] = "unit_price";
	$fdata["ownerTable"] = "proforma_invoice_items";
		$fdata["Label"]="Unit Price"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "unit_price";
	
		$fdata["FullName"]= "proforma_invoice_items.unit_price";
	
		
		
		
		
		
				$fdata["Index"]= 9;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdataproforma_invoices_report["unit_price"]=$fdata;
//	total_price
	$fdata = array();
	$fdata["strName"] = "total_price";
	$fdata["ownerTable"] = "proforma_invoice_items";
		$fdata["Label"]="Total Price"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "total_price";
	
		$fdata["FullName"]= "proforma_invoice_items.total_price";
	
		
		
		
		
		
				$fdata["Index"]= 10;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdataproforma_invoices_report["total_price"]=$fdata;
//	proforma_invoice_no
	$fdata = array();
	$fdata["strName"] = "proforma_invoice_no";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Proforma Invoice No"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "proforma_invoice_no";
	
		$fdata["FullName"]= "proforma_invoices.proforma_invoice_no";
	
		
		
		
		
		
				$fdata["Index"]= 11;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdataproforma_invoices_report["proforma_invoice_no"]=$fdata;
//	proforma_invoice_date
	$fdata = array();
	$fdata["strName"] = "proforma_invoice_date";
	$fdata["ownerTable"] = "proforma_invoices";
		$fdata["Label"]="Proforma Invoice Date"; 
	
		
		
	$fdata["FieldType"]= 7;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Date";
	$fdata["ViewFormat"]= "Short Date";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "proforma_invoice_date";
	
		$fdata["FullName"]= "proforma_invoices.proforma_invoice_date";
	
		
		
		
		
		
				$fdata["Index"]= 12;
		$fdata["DateEditType"] = 13; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdataproforma_invoices_report["proforma_invoice_date"]=$fdata;

	
$tables_data["proforma_invoices_report"]=&$tdataproforma_invoices_report;
$field_labels["proforma_invoices_report"] = &$fieldLabelsproforma_invoices_report;
$fieldToolTips["proforma_invoices_report"] = &$fieldToolTipsproforma_invoices_report;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["proforma_invoices_report"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["proforma_invoices_report"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto250=array();
$proto250["m_strHead"] = "SELECT";
$proto250["m_strFieldList"] = "proforma_invoices.account_id,  proforma_invoices.buyer_id,  proforma_invoices.consignee_id,  proforma_invoices.notify_id,  proforma_invoice_items.part_no,  proforma_invoice_items.uom_id,  proforma_invoice_items.quantity,  proforma_invoice_items.description,  proforma_invoice_items.unit_price,  proforma_invoice_items.total_price,  proforma_invoices.proforma_invoice_no,  proforma_invoices.proforma_invoice_date";
$proto250["m_strFrom"] = "FROM proforma_invoices  INNER JOIN proforma_invoice_items ON proforma_invoices.id = proforma_invoice_items.proforma_commercial_id";
$proto250["m_strWhere"] = "";
$proto250["m_strOrderBy"] = "";
$proto250["m_strTail"] = "";
$proto251=array();
$proto251["m_sql"] = "";
$proto251["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto251["m_column"]=$obj;
$proto251["m_contained"] = array();
$proto251["m_strCase"] = "";
$proto251["m_havingmode"] = "0";
$proto251["m_inBrackets"] = "0";
$proto251["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto251);

$proto250["m_where"] = $obj;
$proto253=array();
$proto253["m_sql"] = "";
$proto253["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto253["m_column"]=$obj;
$proto253["m_contained"] = array();
$proto253["m_strCase"] = "";
$proto253["m_havingmode"] = "0";
$proto253["m_inBrackets"] = "0";
$proto253["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto253);

$proto250["m_having"] = $obj;
$proto250["m_fieldlist"] = array();
						$proto255=array();
			$obj = new SQLField(array(
	"m_strName" => "account_id",
	"m_strTable" => "proforma_invoices"
));

$proto255["m_expr"]=$obj;
$proto255["m_alias"] = "";
$obj = new SQLFieldListItem($proto255);

$proto250["m_fieldlist"][]=$obj;
						$proto257=array();
			$obj = new SQLField(array(
	"m_strName" => "buyer_id",
	"m_strTable" => "proforma_invoices"
));

$proto257["m_expr"]=$obj;
$proto257["m_alias"] = "";
$obj = new SQLFieldListItem($proto257);

$proto250["m_fieldlist"][]=$obj;
						$proto259=array();
			$obj = new SQLField(array(
	"m_strName" => "consignee_id",
	"m_strTable" => "proforma_invoices"
));

$proto259["m_expr"]=$obj;
$proto259["m_alias"] = "";
$obj = new SQLFieldListItem($proto259);

$proto250["m_fieldlist"][]=$obj;
						$proto261=array();
			$obj = new SQLField(array(
	"m_strName" => "notify_id",
	"m_strTable" => "proforma_invoices"
));

$proto261["m_expr"]=$obj;
$proto261["m_alias"] = "";
$obj = new SQLFieldListItem($proto261);

$proto250["m_fieldlist"][]=$obj;
						$proto263=array();
			$obj = new SQLField(array(
	"m_strName" => "part_no",
	"m_strTable" => "proforma_invoice_items"
));

$proto263["m_expr"]=$obj;
$proto263["m_alias"] = "";
$obj = new SQLFieldListItem($proto263);

$proto250["m_fieldlist"][]=$obj;
						$proto265=array();
			$obj = new SQLField(array(
	"m_strName" => "uom_id",
	"m_strTable" => "proforma_invoice_items"
));

$proto265["m_expr"]=$obj;
$proto265["m_alias"] = "";
$obj = new SQLFieldListItem($proto265);

$proto250["m_fieldlist"][]=$obj;
						$proto267=array();
			$obj = new SQLField(array(
	"m_strName" => "quantity",
	"m_strTable" => "proforma_invoice_items"
));

$proto267["m_expr"]=$obj;
$proto267["m_alias"] = "";
$obj = new SQLFieldListItem($proto267);

$proto250["m_fieldlist"][]=$obj;
						$proto269=array();
			$obj = new SQLField(array(
	"m_strName" => "description",
	"m_strTable" => "proforma_invoice_items"
));

$proto269["m_expr"]=$obj;
$proto269["m_alias"] = "";
$obj = new SQLFieldListItem($proto269);

$proto250["m_fieldlist"][]=$obj;
						$proto271=array();
			$obj = new SQLField(array(
	"m_strName" => "unit_price",
	"m_strTable" => "proforma_invoice_items"
));

$proto271["m_expr"]=$obj;
$proto271["m_alias"] = "";
$obj = new SQLFieldListItem($proto271);

$proto250["m_fieldlist"][]=$obj;
						$proto273=array();
			$obj = new SQLField(array(
	"m_strName" => "total_price",
	"m_strTable" => "proforma_invoice_items"
));

$proto273["m_expr"]=$obj;
$proto273["m_alias"] = "";
$obj = new SQLFieldListItem($proto273);

$proto250["m_fieldlist"][]=$obj;
						$proto275=array();
			$obj = new SQLField(array(
	"m_strName" => "proforma_invoice_no",
	"m_strTable" => "proforma_invoices"
));

$proto275["m_expr"]=$obj;
$proto275["m_alias"] = "";
$obj = new SQLFieldListItem($proto275);

$proto250["m_fieldlist"][]=$obj;
						$proto277=array();
			$obj = new SQLField(array(
	"m_strName" => "proforma_invoice_date",
	"m_strTable" => "proforma_invoices"
));

$proto277["m_expr"]=$obj;
$proto277["m_alias"] = "";
$obj = new SQLFieldListItem($proto277);

$proto250["m_fieldlist"][]=$obj;
$proto250["m_fromlist"] = array();
												$proto279=array();
$proto279["m_link"] = "SQLL_MAIN";
			$proto280=array();
$proto280["m_strName"] = "proforma_invoices";
$proto280["m_columns"] = array();
$proto280["m_columns"][] = "id";
$proto280["m_columns"][] = "account_id";
$proto280["m_columns"][] = "buyer_id";
$proto280["m_columns"][] = "consignee_id";
$proto280["m_columns"][] = "notify_id";
$proto280["m_columns"][] = "proforma_invoice_no";
$proto280["m_columns"][] = "proforma_invoice_date";
$proto280["m_columns"][] = "customer_reference";
$proto280["m_columns"][] = "customer_reference_date";
$proto280["m_columns"][] = "commercial_invoice_no";
$proto280["m_columns"][] = "commercial_invoice_date";
$proto280["m_columns"][] = "term_of_sale1";
$proto280["m_columns"][] = "term_of_sale2";
$proto280["m_columns"][] = "shipment_mode_id";
$proto280["m_columns"][] = "estimated_shipment_date";
$proto280["m_columns"][] = "estimated_shipment_date_custom";
$proto280["m_columns"][] = "additional_charges_frieght_type";
$proto280["m_columns"][] = "additional_charges_legalization";
$proto280["m_columns"][] = "additional_charges_inspection";
$proto280["m_columns"][] = "additional_charges_special_packing";
$proto280["m_columns"][] = "others1_key";
$proto280["m_columns"][] = "others2_key";
$proto280["m_columns"][] = "others3_key";
$proto280["m_columns"][] = "others1_value";
$proto280["m_columns"][] = "others2_value";
$proto280["m_columns"][] = "others3_value";
$proto280["m_columns"][] = "payment_term_id";
$proto280["m_columns"][] = "payment_term_other";
$proto280["m_columns"][] = "bank_name_id";
$proto280["m_columns"][] = "bank_term1";
$proto280["m_columns"][] = "bank_term2";
$proto280["m_columns"][] = "currency_id";
$proto280["m_columns"][] = "terms_and_conditions";
$obj = new SQLTable($proto280);

$proto279["m_table"] = $obj;
$proto279["m_alias"] = "";
$proto281=array();
$proto281["m_sql"] = "";
$proto281["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto281["m_column"]=$obj;
$proto281["m_contained"] = array();
$proto281["m_strCase"] = "";
$proto281["m_havingmode"] = "0";
$proto281["m_inBrackets"] = "0";
$proto281["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto281);

$proto279["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto279);

$proto250["m_fromlist"][]=$obj;
												$proto283=array();
$proto283["m_link"] = "SQLL_INNERJOIN";
			$proto284=array();
$proto284["m_strName"] = "proforma_invoice_items";
$proto284["m_columns"] = array();
$proto284["m_columns"][] = "id";
$proto284["m_columns"][] = "proforma_commercial_id";
$proto284["m_columns"][] = "part_no";
$proto284["m_columns"][] = "uom_id";
$proto284["m_columns"][] = "quantity";
$proto284["m_columns"][] = "description";
$proto284["m_columns"][] = "unit_price";
$proto284["m_columns"][] = "total_price";
$obj = new SQLTable($proto284);

$proto283["m_table"] = $obj;
$proto283["m_alias"] = "";
$proto285=array();
$proto285["m_sql"] = "proforma_invoices.id = proforma_invoice_items.proforma_commercial_id";
$proto285["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "proforma_invoices"
));

$proto285["m_column"]=$obj;
$proto285["m_contained"] = array();
$proto285["m_strCase"] = "= proforma_invoice_items.proforma_commercial_id";
$proto285["m_havingmode"] = "0";
$proto285["m_inBrackets"] = "0";
$proto285["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto285);

$proto283["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto283);

$proto250["m_fromlist"][]=$obj;
$proto250["m_groupby"] = array();
$proto250["m_orderby"] = array();
$obj = new SQLQuery($proto250);

$queryData_proforma_invoices_report = $obj;
$tdataproforma_invoices_report[".sqlquery"] = $queryData_proforma_invoices_report;

$tableEvents["proforma_invoices_report"] = new eventsBase;

?>
